home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / emacssrc.zip / EMACSSRC.TAR / emacs-19.17 / nmkfile < prev    next >
Text File  |  1993-12-06  |  3KB  |  80 lines

  1. #
  2. #  Hacked up Nmake makefile for GNU Emacs
  3. #
  4. #   Geoff Voelker (voelker@cs.washington.edu)    11-20-93
  5. #
  6. #  This file is part of GNU Emacs.
  7. #  
  8. #  GNU Emacs is free software; you can redistribute it and/or modify
  9. #  it under the terms of the GNU General Public License as published by
  10. #  the Free Software Foundation; either version 2, or (at your option)
  11. #  any later version.
  12. #  
  13. #  GNU Emacs is distributed in the hope that it will be useful,
  14. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. #  GNU General Public License for more details.
  17. #  
  18. #  You should have received a copy of the GNU General Public License
  19. #  along with GNU Emacs; see the file COPYING.  If not, write to
  20. #  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  21. #
  22.  
  23. #
  24. # Set this to be the directory into which you want emacs installed
  25. #
  26. INSTALL_DIR   = D:\users\voelker\ntemacs\test
  27.  
  28. SUBDIRS          = src lib-src lisp
  29.  
  30. #
  31. # Build emacs
  32. #
  33. all:;        for %%f in ( $(SUBDIRS) ) do cd %%f & nmake -f nmkfile all & cd ..
  34.  
  35. #
  36. # Build and install emacs in INSTALL_DIR
  37. #
  38. CP           = xcopy /frei
  39. install:    all
  40.         - mkdir $(INSTALL_DIR)
  41.         for %%f in ( $(SUBDIRS) ) do cd %%f & nmake -f nmkfile INSTALL_DIR=$(INSTALL_DIR) install & cd ..
  42.         del /q .\same-dir.tst
  43.         del /q $(INSTALL_DIR)\same-dir.tst
  44.         echo SameDirTest > .\same-dir.tst
  45.         if not exist $(INSTALL_DIR)\same-dir.tst nmake -f nmkfile real_install
  46.         del /q .\same-dir.tst
  47.  
  48. #
  49. # This installs executables from .\bin into the installation directory
  50. # without building anything.
  51. #
  52. fast_install:
  53.         - mkdir $(INSTALL_DIR)\data
  54.         xcopy /fr .\lib-src\DOC $(INSTALL_DIR)\data
  55.         - mkdir $(INSTALL_DIR)\bin
  56.         del /q .\same-dir.tst
  57.         del /q $(INSTALL_DIR)\same-dir.tst
  58.         echo SameDirTest > .\same-dir.tst
  59.         if not exist $(INSTALL_DIR)\same-dir.tst xcopy /fr .\bin\emacs.exe $(INSTALL_DIR)\bin
  60.         if not exist $(INSTALL_DIR)\same-dir.tst xcopy /fr .\bin\etags.exe $(INSTALL_DIR)\bin
  61.         if not exist $(INSTALL_DIR)\same-dir.tst xcopy /fr .\bin\ctags.exe $(INSTALL_DIR)\bin
  62.         if not exist $(INSTALL_DIR)\same-dir.tst nmake -f nmkfile real_install
  63.         del /q .\same-dir.tst
  64.  
  65. real_install:
  66.         xcopy /fr emacs.cmd $(INSTALL_DIR)
  67.         - mkdir $(INSTALL_DIR)\etc
  68.         $(CP) .\etc $(INSTALL_DIR)\etc
  69.         - mkdir $(INSTALL_DIR)\info
  70.         $(CP) .\info $(INSTALL_DIR)\info
  71.         - mkdir $(INSTALL_DIR)\lock
  72.  
  73. #
  74. # Maintenance
  75. clean:;        del /q *~
  76.         delnode /q deleted
  77.         for %%f in ( $(SUBDIRS) ) do cd %%f & nmake -f nmkfile clean & cd ..
  78.  
  79.